package com.pig4cloud.ila.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.ila.client.api.dto.ArticleDTO;
import com.pig4cloud.ila.client.api.entity.Article;
import com.pig4cloud.ila.client.api.vo.ArticleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author KonBAI
 * @version 1.0
 * Create by 2020/10/23 09:13
 */
@Mapper
public interface PlatformArticleMapper extends BaseMapper<Article> {

    /**
     * 自定义 分页查询
     * @param page
     * @param articleDTO
     * @return
     */
    Page<ArticleVO> findPage(Page page, @Param("dto") ArticleDTO articleDTO);
}
